// created by noellynch
// Jun 8, 2009

package com.sceneworker.monitorpopup;

import java.awt.event.ActionEvent;

import javax.swing.JDialog;
import javax.swing.tree.TreePath;

import com.jme.scene.state.TextureState;
import com.sceneworker.app.globals.SceneWorkerDialogManager;
import com.sceneworker.monitorpopup.panels.BlendCalculatorPanel;

public class BlendStateMenu extends BaseMenu {

	private static final String BLEND_CALCULATOR = "Blend Calculator";

	public	BlendStateMenu(TreePath cl_selectedPath, SceneWorkerPopUp cl_menu) {
		super(cl_menu);

		buildMenu();
	}

	@Override
	public void actionPerformed(ActionEvent cl_e) {
		
		if(cl_e.getActionCommand().equals(BLEND_CALCULATOR)) {
			JDialog		lcl_dlg = SceneWorkerDialogManager.inst().makeADialog(SceneWorkerDialogManager.BLEND_CALULATOR);
			lcl_dlg.add(new BlendCalculatorPanel(lcl_dlg));
			lcl_dlg.pack();
			lcl_dlg.setVisible(true);
		}
	}

	@Override
	protected void buildMenu() {
		mcl_menu.add(buildAMenuItem(BLEND_CALCULATOR));
	}

}
